
package com.tinem.platform.module.starter.jpa.repository.rbac;

import com.tinem.platform.module.starter.jpa.entity.rbac.RbacUser;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @description TODO
 * @site https://fzh.cloud/
 * @company
 * @create 2021-6-11 11:33
 */
public interface RbacUserRepository extends JpaRepository<RbacUser, String> {

    RbacUser findFirstByEmail(String email);

    RbacUser findFirstByAccount(String account);

    RbacUser findFirstByMobileAndCountryMobileCode(String countryMobileCode,String mobile);
}